#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BaseManager.h"

@interface RenRenManager : BaseManager {

    NSString *_sessionKey;
    NSArray* _permissions;
    NSDate* _expirationDate;
    NSString* _call_back;
    NSString* secret;
    NSString* sessionURL;
    NSString* restServerURL;
    NSURLConnection* connection;
    NSMutableData*  responseText;
    id _result;
    Boolean mark;
   
    
}

@property(nonatomic, copy) NSString* _sessionKey;
@property(nonatomic, copy) NSDate* _expirationDate;
@property(nonatomic, copy) NSString * _call_back;
@property(nonatomic, copy) NSString* secret;
@property(nonatomic, copy) NSString* sessionURL;
@property(nonatomic, copy) NSString* restServerURL;
@property(nonatomic, assign) NSURLConnection* connection;
@property(nonatomic, assign) NSMutableData* responseText;
@property(nonatomic, retain) id _result;



- (NSURL*)generateURL:(NSString*)baseURL params:(NSDictionary*)params;
-(NSString *)getSessionKeyByToken:(NSString *) token;
-(NSString *)getSecretKeyByToken:(NSString *) token;
-(void)createUserSessionInfo;
- (void)requestWithParams:(NSMutableDictionary *)params;
- (id)parseJsonResponse:(NSData *)data error:(NSError **)error;
-(NSMutableArray *) getStatus;
-(BOOL)isSessionValid;


@end






















































